package com.woniu.service;

import com.woniu.entity.PageResult;
import com.woniu.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.vo.*;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author long
 * @since 2022-10-12
 */
public interface IOrderService extends IService<Order> {

    PageResult search(Integer currentPage, Integer pageSize, OrderSearchVo searchVo);

    boolean saveOrder(String carNum);

    OrderSeachByIdReturnVo searchById(long orderId) throws ParseException;

    List<ChargeReturnVo> searchChargeRule(long roadId);

    List<OrderSeachByIdReturnVo> searchByStatus(long patrolId,String status);

    Boolean updateStatus(long orderId, BigDecimal money, String payWay, String status);

    OrderUpdateReturnVo updateOrderById(long orderId, String num, String userPhone, List<String> orderImageList);

    boolean createOrder(Long magnetId, CarPlateVo carPlateVo);

    List<OrderWithUserIdVo> queryUnclaimedOrder(Long patrolId);

    Order settleOrder(long orderId);
}
